﻿using System;
using System.Globalization;
using System.Reflection;
using System.Resources;
using System.Threading;
using System.Windows.Data;

namespace Converter
{
    public class LoaiTienTeToVisibleComboBoxConverter : IValueConverter
    {
        #region IValueConverter Members

        /// <summary>
        /// This method is used to bind the silverlight component to the resource. 
        /// </summary>
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            string Ma = (string)value;
            if (value == null)
                return "Collapsed";
            if (Ma.Equals("VND"))
                return "Collapsed";
            else
                return "Visible";
        }
        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return "Collapsed";
        }
        #endregion
    }
}